﻿using System.Windows;
using Cbs.Lucky.ViewModels;
using MahApps.Metro.Controls;
using Prism.Regions;

namespace Cbs.Lucky.Views
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : MetroWindow
    {
        public MainWindow(
            IRegionManager regionManager)
        {
            InitializeComponent();
            RegionManager = regionManager;
            RegionManager?.RegisterViewWithRegion(RegionNameEnum.ContentRegion, typeof(DataList));
        }

        public IRegionManager RegionManager { get; }
    }
}
